package link.anyauto.fsmgr.biz.main;

import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import android.util.Log;

/**
 * Created by Administrator on 2016/7/17.
 */
public class MainHandlers {

    public boolean clicked(int gpos, int cpos) {
        if(vm != null) {
            String action = vm.getAction(gpos, cpos);
            if(!TextUtils.isEmpty(action)) {
                context.startActivity(new Intent(action));
            }
        }
        return true;
    }

    MainVM vm;
    Context context;
}
